package com.liuya.safe.user.service;

import com.liuya.common.exception.EntityExistException;
import com.liuya.db.DBLevelException;
import com.liuya.db.sql.Query;
import com.liuya.safe.model.SafeUser;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

public interface UserManagerService extends Serializable {

//    public int selectUserCounts(SafeUser user, Map context, String key, Query refQuery);

//    public Collection selectUsers(SafeUser user, Map context, String key, Query refQuery, int start, int limit) ;

//    public Collection selectUsersByCustomizedJavaBean(SafeUser user, Map context, String key, Query refQuery, int start, int limit);

    public void save(SafeUser user) throws DBLevelException, EntityExistException ;

    public Object update(SafeUser user);

    public void delete(SafeUser user) ;

    public SafeUser selectBy(SafeUser user);

    public SafeUser selectByName(String name);

    public SafeUser selectById(String id);

//    public SafeUser selectByUniqueFields(SafeUser user);

    public Collection selectAll() ;
    
}
